//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================

#ifndef __ELASTOS_EVENTMAN_H__
#define __ELASTOS_EVENTMAN_H__

typedef struct EmIsrParameter {
    Int32 nParameter1;
    Int32 nParameter2;
    Int32 nParameter3;
    Int32 nParameter4;
}EmIsrParameter, *PEmIsrParameter;

EXTERN ECode EmSendEvent(
    /* [in] */ UInt32 uEventNum,
    /* [in] */ const MemoryBuf & ebEventData);

EXTERN ECode EmPostEvent(
    /* [in] */ UInt32 uEventNum,
    /* [in] */ const MemoryBuf & ebEventData);

EXTERN ECode EmPostEventByIsr(
    /* [in] */ UInt32 uEventNum,
    /* [in] */ PEmIsrParameter pEmIsrParm);

#endif //__ELASTOS_EVENTMAN_H__
